package com.eat.common_utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("返回码")
public interface ResultCode {

    @ApiModelProperty("0: 成功")
    public static Integer SUCCESS = 0;//成功

    @ApiModelProperty("1: 失败")
    public static Integer ERROR = 1;//失败

    @ApiModelProperty("2: 资源用户不存在")
    public static Integer NOT_FOUND = 2;//资源用户不存在

    @ApiModelProperty("3: 用户未注册")
    public static Integer NOT_REGISTER = 3;//用户未注册

    @ApiModelProperty("4: 密码错误")
    public static Integer WRONG = 4;//密码错误

    @ApiModelProperty("5: 该账号已被注册")
    public static Integer ALREADY_EXISTS = 5;//该账号已被注册

    @ApiModelProperty("6: 该用户没有添加鱼缸")
    public static Integer NO_AQUARIUM = 6;//该用户没有添加鱼缸

    @ApiModelProperty("7: 类型不支持")
    public static Integer NOT_SUPPORT = 7; //类型不支持

    @ApiModelProperty("8: 更新失败")
    public static Integer UPDATE_FAILURE = 8; //更新失败

    @ApiModelProperty("9: 认证失败")
    public static Integer AUTHENTICATION_FAILED = 9; //认证失败

    @ApiModelProperty("10: 鱼缸的鱼已满")
    public static Integer FULL = 10;//鱼缸的鱼已满

    @ApiModelProperty("11: 鱼的名称已存在")
    public static Integer FISH_NAME_EXISTS = 11; //鱼的名称已存在

    @ApiModelProperty("12: 鱼缸网络异常")
    public static Integer AQUARIUM_NETWORK_ERROR = 12; //鱼缸网络异常

    @ApiModelProperty("13: 超过总页数")
    public static Integer PAGE_ERROR = 13; //超过总页数

    @ApiModelProperty("14: 此鱼缸已有用户")
    public static  Integer BELONGED = 14; // 此鱼缸已有用户

    @ApiModelProperty("15: token失效")
    public static  Integer TOKEN_INVALID = 15; // token失效


}
